﻿namespace AnyOffice.Model
{
    using System;

    public class VehicleMaintenanceData
    {
        protected object _fee;
        protected int _maintenanceId = -1;
        protected object _person;
        protected object _reason;
        protected object _remark;
        protected object _requestDate;
        protected string _type = string.Empty;
        protected int _vehicleId;

        public decimal Fee
        {
            get
            {
                return (decimal) this._fee;
            }
            set
            {
                this._fee = value;
            }
        }

        public bool FeeIsNull
        {
            get
            {
                return (this._fee == null);
            }
            set
            {
                if (value)
                {
                    this._fee = null;
                }
            }
        }

        public int MaintenanceId
        {
            get
            {
                return this._maintenanceId;
            }
            set
            {
                this._maintenanceId = value;
            }
        }

        public string Person
        {
            get
            {
                return (string) this._person;
            }
            set
            {
                this._person = value;
            }
        }

        public bool PersonIsNull
        {
            get
            {
                return (this._person == null);
            }
            set
            {
                if (value)
                {
                    this._person = null;
                }
            }
        }

        public string Reason
        {
            get
            {
                return (string) this._reason;
            }
            set
            {
                this._reason = value;
            }
        }

        public bool ReasonIsNull
        {
            get
            {
                return (this._reason == null);
            }
            set
            {
                if (value)
                {
                    this._reason = null;
                }
            }
        }

        public string Remark
        {
            get
            {
                return (string) this._remark;
            }
            set
            {
                this._remark = value;
            }
        }

        public bool RemarkIsNull
        {
            get
            {
                return (this._remark == null);
            }
            set
            {
                if (value)
                {
                    this._remark = null;
                }
            }
        }

        public DateTime RequestDate
        {
            get
            {
                return (DateTime) this._requestDate;
            }
            set
            {
                this._requestDate = value;
            }
        }

        public bool RequestDateIsNull
        {
            get
            {
                return (this._requestDate == null);
            }
            set
            {
                if (value)
                {
                    this._requestDate = null;
                }
            }
        }

        public string Type
        {
            get
            {
                return this._type;
            }
            set
            {
                this._type = value;
            }
        }

        public int VehicleId
        {
            get
            {
                return this._vehicleId;
            }
            set
            {
                this._vehicleId = value;
            }
        }
    }
}

